                    <div id="actu" align="left">
                     <?php
                        $login_style = 'style="height:204px;"';
                        if($this->session->userdata('user_id')==TRUE){
                            $login_style='style="height:180px;"';
                        }
                        if($login_error){
                            $login_style='style="height: 254px;"';
                        }
                        if($validate_error){
                            $login_style='style="height: 274px;"';
                        }
                    ?>
                        <div id="login" align="center" <?php echo $login_style;?>>
                            <img src="<?php echo base_url().'assets/css/'?>images/bgrtop_login.png" class="bgrtop"/>
                            <img src="<?php echo base_url().'assets/css/'?>images/bgrbottom_login.png" class="bgrbottom"/>
                            <?php if($this->session->userdata('user_id')==FALSE){?>
                            <div class="contenu">
                                <div id="titre_login" >CONNEXION CLIENT</div>
                                <?php $att = array('id'=>'client_login');?>
                                <?php echo form_open('user/login',$att);?>
                                <table id="form_login">
                                <tr><td>Email</td><td><input type="text" name="email_login" id="email_login" class="input_login"/></td></tr>
                                <tr><td colspan="2"><?php echo form_error('email_login')?></td></tr>
                                <tr><td>Pass</td><td><input type="password" name="pass_login" id="pass_login" class="input_login"/></td></tr>
                                <tr><td colspan="2"><?php echo form_error('pass_login')?></td></tr>
                                <?php if($login_error) echo $login_error;?>
                            </table>
                            
                            <input type="submit" value=" Connexion " name="submit" id="submit" />
                          
                                <?php echo form_close();?>
                                <div id="pass_oublier">
                                    <a id="various3" href="<?php echo root_url('seatting-falin').('index.php/accueil/register') ; ?>">Inscription</a> /
                                    <a href="<?php echo root_url('seatting-falin').('index.php/accueil/forgot_pass') ; ?>">Mot de passe oublié?</a></div>
                            </div>
                            <?php }else{?>
                            <div class="contenu">
                            <table id="tbprofil">
                                <?php
                                    $user_id = $this->session->userdata('user_id');
                                    $ava = $this->session->userdata('gravatar');
                                    $image_path = './../assets/avatar/images/' . $ava;
                                    if ($ava != '') {
                                        if (file_exists($image_path)) {
                                            $image_path = root_url('seatting-falin') . 'assets/avatar/images/' . $ava;
                                        } else {
                                            $image_path = root_url('seatting-falin') . 'assets/noimage.gif';
                                        }
                                    } else {
                                        $image_path = root_url('seatting-falin') . 'assets/noimage.gif';
                                    }
                                ?>
                                <tr>
                                    <td>
                                        <img height="80px" src="<?php echo $image_path?>"/>
                                    </td>
                                    <td style="font-size: larger">Bonjour<br/> <a href="<?php echo root_url('seatting-falin') .'index.php/accueil/edit_profile' . '/' . $user_id ; ?>"><?php echo $this->session->userdata('display_name')?></a></td>
                                </tr>
                                <tr>
                                    <td colspan="2"><a href="<?php echo root_url('seatting-falin') .'index.php/accueil/change_pass' . '/' . $user_id ; ?>">Mot de passe | </a>
                                        <a href="<?php echo root_url('seatting-falin') .'index.php/accueil/logout';?>">Déconnexion</a></td>
                                </tr>
                            </table>
                            </div>
                            <?php }?>
                        </div>
                        <!--END pass_oublier-->
                        <div class="info_left" align="center">
                            <?php foreach ($card_vip as $vip):?>
                            <div id="titre_menu" align="center"> <?php echo $vip['title']?> </div>
                            <?php
                                    $image_card = './assets/text_img/images/' . $vip['image'];
                                    if (file_exists($image_card) && $vip['image']!= null) {
                                        $image_card = base_url() . 'assets/text_img/images/' . $vip['image'];
                                    } else {
                                        $image_card = root_url('seatting-falin') . 'assets/noimage.gif';
                                    }
                            ?>
                            <div id="fidelite" align="left"><img  src="<?php echo $image_card?>" width="100px" border="0"/>
                                <p align="left" id="text">
                                    <?php echo get_short_description($vip['content'],10)?>
                                </p>
                            </div>
                            <?php endforeach;?>
                            <p align="left">
                                <a href="<?php echo site_url('seatting_falin/detail_card_vip')?>" style="color:#5d94c5;">Lire la suite >></a>
                            </p>
                        </div>
                        <div id="box3" class="box" align="center">
                            <img src="<?php echo base_url().'assets/css/'?>images/bgrtop_3.png" class="bgrtop" />
                            <img src="<?php echo base_url().'assets/css/'?>images/bgrbottom_3.png" class="bgrbottom" />
                            <div class="contenu_box">
                                <?php foreach ($protect_animal as $protect):?>
                                <div class="titre_box"><?php echo $protect['title']?></div>
                                <?php
                                    $image_protect = './assets/text_img/images/' . $protect['image'];
                                    
                                    if (file_exists($image_protect) && $protect['image']!= null) {
                                        $image_protect = base_url() . 'assets/text_img/images/' . $protect['image'];
                                    } else {
                                        $image_protect = root_url('seatting-falin') . 'assets/noimage.gif';
                                    }
                                    
                                ?>
                                <div class="detail_box">
                                    <img src="<?php echo $image_protect?>" width="120px" border="0" />                                </div>
                                <div id="text_box" align="center">
                                      <?php echo get_short_description($protect['content'],15)?>
                                    <a href="<?php echo site_url('seatting_falin/detail_protect_animal') ?>" style="color:#5d94c5;">Lire la suite >></a>
                                </div>
                                <?php endforeach;?>
                                <div id="titre_link" align="center"></div>
                                
                            </div>
                            <!--END  CARTE FIDÉLITÉ-->
                        </div>    
                        <div class="info_left" align="center">
                            <div id="titre_menu" align="left">ACTUALITE</div>
                            <?php foreach ($actualite as $news):?>
                            <?php
                                    $image = './../assets/actuimg/thumbs/' . $news['img'];
                                    if (file_exists($image) && $news['img']!= null) {
                                        $image = root_url('seatting-falin') . 'assets/actuimg/thumbs/' . $news['img'];
                                    } else {
                                        $image = root_url('seatting-falin') . './assets/noimage.gif';
                                    }
                            ?>
                            <div id="titre_text1" align="left"><?php echo $news['title'];?></div>
                            <div id="banner_left" align="center"><img width="180px" src="<?php echo $image;?>" border="0" /></div>
                            <div id="text" align="center">
                                <?php echo $news['introtext'];?></div>
                            <div id="titre_link" align="center"><a href="<?php echo root_url('seatting-falin').'/index.php/accueil/news_detail/'.$news['id'];?>" style="color:#5d94c5;">Lire la suite >></a></div>
                            <?php endforeach;?>
                            <!--     RECOMMANDATION                       -->
                            <div id="titre_menu" align="left">    NOS RECOMMANDATION</div>
                            <?php foreach ($recommandation as $feedback):?>
                            <div id="text" align="center">
                                <?php echo get_short_description($feedback['content'],20);?></div>
                            <div id="titre_text1" align="center"><?php echo $feedback['display_name'];?></div>
                            <?php endforeach;?>
                            <div id="titre_link" align="center"><a href="<?php echo site_url('seatting_falin/list_recommandation');?>" style="color:#5d94c5;">
                                    Lire la suite >></a></div>
                        </div>    
                    </div> 
<div id="actu1" align="center">